<?php $v =& $this->validation ?>

	<h2>Edit Entry</h2>	
	
<!--	<div class="form_error">
		<?=$v->error_string?>
	</div>

	<?php //echo form_open('member/listings/edit/'.$entry->entry_id)?>
		<p>
			<label for="category">Category: </label>
			<select name="category" id="category" class="<?=$v->category_error?>">
				
				<?php// foreach($categories as $category): ?>
				<?php //$selected = ($category->category_id == $entry->FK_category_id) ? 'selected="selected"' : '' ?>
				<option value="<?php //echo $category->category_id?>" <?php // echo $v->set_select('category', $category->category_id) ? $v->set_select('category', $category->category_id) : $selected?> ><?=$category->name?></option>
				<?php// endforeach ?>
				
			</select>
		</p>
		<p><label for="title">Title: </label><input type="text" name="title" value="<?php// echo ($v->title) ? $v->title : $entry->title?>" id="title" class="<?php //echo $v->title_error?>" /></p>
		<p><label for="url">URL: </label><input type="text" name="url" value="<?php //echo ($v->url) ? $v->url : $entry->url?>" id="url" class="<?php //echo $v->url_error?>" /></p>
		<p><label for="description">Description: </label><textarea name="description" id="description" class="<?php //echo $v->description_error?>" rows="8" cols="40"><?php //echo ($v->description) ? $v->description : $entry->description?></textarea></p>
		<p><button type="submit">Save</button></p>
	<?php //echo form_close()?>
--><?php $this->load->view('captcha');?>
	&laquo; <?=anchor('member/listings', 'Back')?>
	